package kfm.model;
import kfm.model.Account;
import kfm.model.Level;


public class Vip extends Account {
    private String name;
    private int point;
    private double money;
    /**
     * 会员等级
     */

    private Level level;

    public Vip(String name, String phone, String password){
        super(phone,password);
        this.name = name;
    }

    public Vip(String name,String phone,String password,Level level){
        super(phone,password);
        this.name = name;
        this.level = level;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPoint() {
        return point;
    }

    public void setPoint(int point) {
        this.point = point;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public Level getLevel() {
        return level;
    }

    public void setLevel(Level level) {
        this.level = level;
    }

    public String toString(){
        return "会员姓名：" + name + "  "+
                "会员电话：" + getPhone() + "  "+
                "会员密码：" + "******" + "  "+
                "积分：" + level.getBase() + "  "+
                "会员等级：" + level + "  "+
                "余额：" + money;
    }


}
